<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/login.css">
</head>
<body>
    <div class="wrap">
        <form action="/loginsubmit" method="post">
            <div class="username">
                <input type="text" name="username" placeholder="请输入用户名" autocomplete="off">
            </div>
            <div class="pwd">
                <input type="password" name="pwd" placeholder="请输入密码" autocomplete="off">
            </div>
            <div class="submit">
                <input type="submit" value="登录" id="submit">
                <div id="register">注册</div>
            </div>
        </form>
    </div>
</body>

<script src="/layui/layui.js"></script>
<script>
    layui.use('jquery',function(){
        var $ = layui.jquery;

        $("#register").click(()=>{
            let url = window.location.host+'/register'
            console.log(url);
           document.location.href='http://'+url
        })




    })

</script>
</html>